package com.jason.bookworm.service;

import com.jason.bookworm.dao.pojo.Book;
import com.jason.bookworm.dao.pojo.BookClassify;
import com.jason.bookworm.dao.pojo.BorrowRecord;
import com.jason.bookworm.response.Result;

import java.util.List;

public interface BookcaseService {
    //获取书籍
    Result<List<Book>> getBooks(Integer num, Integer classifyID, Integer page);

    //获取分类列表
    Result<List<BookClassify>> getClassifyList();

    //获取页数
    Result<Integer> getPages(Integer num, Integer classifyID);
    
    Result<Object> reserveOneBook(String bookID);

    Result<Object> deleteOneBook(String bookID);

    Result<List<Book>> getAllReserveBook();

    Result<Object> submitBorrowRecord(List<BorrowRecord> recordList);

    Result<List<BorrowRecord>> getAllBorrowRecord();

    Result<List<Book>> getBooks(List<String> bookIDList);

    Result<Book> getBook(Integer bookID);

    Result<List<Book>> getAllBook();

    Result<Object> returnOneBook(Integer bookID);

    Result<Object> deleteReturnedRecord(Integer recordID);
}
